all:  sv_node

sv_node:  globalVar.o sv_node.o initParse.o globalFunctions.o beaconConnect.o beaconAccept.o nonBeaconConnect.o nonBeaconJoinConnect.o nonBeaconAccept.o beaconRead.o beaconWrite.o eventDispatcher.o keepAliveMsg.o keepAliveTimeOut.o userTerminal.o checkTimeoutFunction.o msgLifeTimeTimer.o processStore.o processGet.o processDelete.o
	g++  *.o -L/home/scf-22/csci551b/openssl/lib -lcrypto -lsocket -lnsl -lresolv -lpthread -Wall -g -o sv_node

globalVar.o: globalVar.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall globalVar.cc

globalFunctions.o: globalFunctions.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall globalFunctions.cc

sv_node.o: sv_node.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall sv_node.cc

initParse.o: initParse.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall initParse.cc

beaconConnect.o: beaconConnect.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall beaconConnect.cc

beaconAccept.o: beaconAccept.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall beaconAccept.cc

nonBeaconConnect.o: nonBeaconConnect.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall nonBeaconConnect.cc

nonBeaconJoinConnect.o: nonBeaconJoinConnect.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall nonBeaconJoinConnect.cc

nonBeaconAccept.o: nonBeaconAccept.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall nonBeaconAccept.cc

beaconRead.o: beaconRead.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall beaconRead.cc

beaconWrite.o: beaconWrite.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall beaconWrite.cc

eventDispatcher.o: eventDispatcher.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall eventDispatcher.cc

keepAliveMsg.o: keepAliveMsg.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall keepAliveMsg.cc

keepAliveTimeOut.o: keepAliveTimeOut.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall keepAliveTimeOut.cc

userTerminal.o: userTerminal.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall userTerminal.cc

checkTimeoutFunction.o: checkTimeoutFunction.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall checkTimeoutFunction.cc

msgLifeTimeTimer.o: msgLifeTimeTimer.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall msgLifeTimeTimer.cc

processStore.o: processStore.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall processStore.cc

processGet.o: processGet.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall processGet.cc

processDelete.o: processDelete.cc
	g++ -c -I/home/scf-22/csci551b/openssl/include -g -pthread -Wall processDelete.cc

clean: 
	rm -rf *o sv_node
